package com.wobito.pojo.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;

/**
 * @Author Wangbaba
 * @Date 2024/9/3 9:49
 * @Version 1.0
 */
@Data
@ApiModel(value = "修改个人密码入参")
@AllArgsConstructor
@NoArgsConstructor
public class UpdatePwdVO {

    @ApiModelProperty(value = "用户ID",required = true)
    private Long id;

    @ApiModelProperty(value = "旧密码",required = true)
    @Size(min = 6,max = 15,message = "密码长度必须在6-15位之间")
    private String oldPwd;

    @ApiModelProperty(value = "新密码",required = true)
    @Size(min = 6,max = 15,message = "密码长度必须在6-15位之间")
    private String newPwd;
}
